package com.itheima.service.impl;

import com.itheima.domain.Teacher;
import com.itheima.service.TeacherService;

import java.util.ArrayList;

public class TeacherSerivceImpl implements TeacherService {
    @Override
    public void addTeacher(Teacher Teacher) {
        teacherDao.addTeacher(Teacher);
    }

    @Override
    public void delectTeacher(int index) {
        teacherDao.delectTeacher(index);
    }

    @Override
    public void updateTeacher(int index, Teacher Teacher) {
        teacherDao.updateTeacher(index,Teacher);
    }

    @Override
    public ArrayList<Teacher> findAllTeacher() {
        return teacherDao.findAllTeacher();
    }

    @Override
    public int findTeacherById(String id) {
        return teacherDao.findTeacherById(id);
    }
}
